<template>
  <div class="wrapper">
    <!-- 头部导航 -->
    <van-nav-bar class="w" title="银发"/>
     <!-- 头部导航部分 -->
    <header>
      <van-tabs v-model="activeName" color="#fff" title-active-color="#ffa300" line-height="5px" background="#000">
        <van-tab title="全部" class="tab">
          <!-- <router-link to="/Home"> -->
          <img class="img-dream" @click="pub('3')" src="@/assets/images/Interpret a dream.jpg" alt />
          <!-- </router-link> -->
          <img @click="jum('2')" src="@/assets/images/heirloom (2).jpg" alt />
          <img @click="exp('4')"  src="@/assets/images/Public class (1).jpg" alt />
          <img @click="skll('5')" src="@/assets/images/Public class (2).jpg" alt />
          <img src="@/assets/images/company.jpg" alt />
          <img @click="pro('2')" src="@/assets/images/employment.jpg" alt />
          <img class="img-fitness" src="@/assets/images/fitness.jpg" alt />
          <img src="@/assets/images/worry.jpg" alt />
          <img @click="jump('1')" src="@/assets/images/school.jpg" alt />
        </van-tab>
        <van-tab title="大学学历" name="b"></van-tab>
        <van-tab title="传家宝" name="c">内容 3</van-tab>
        <van-tab title="公开课" name="d">内容 4</van-tab>
        <van-tab title="职业院校" name="a">内容 5</van-tab>
        <van-tab title="老友陪伴" name="b">内容 6</van-tab>
        <van-tab title="二次就业" name="c">内容 7</van-tab>
        <van-tab title="运动健身" name="d">内容 8</van-tab>
        <van-tab title="老人省心" name="a">内容 9</van-tab>
        <van-tab title="校园展播" name="b">内容 10</van-tab>
      </van-tabs>
      <!-- <div class="gdlan">
        <i>更多</i>
      </div>-->
    </header>
  </div>
</template>
<script>
import "vant/lib/index.css";
import Vant from "vant";
import { Tab, Tabs } from "vant";
import { mapGetters } from "vuex";
export default {
  data() {
    return {
      activeName: 0,
      // active: 2,
      // areaList: City,
      // searchResult: []
    };
  },
  computed: {},
  methods: {
    jump(val) {
      if (val == 1) {
        this.$router.push({ path: "/home" });
      }
    },
   skll(val){
     this.$router.push({path: "/wrapper"})
   },
    pro(val) {
      this.$router.push({ path: "/About" });
    },
    pub(val){
      this.$router.push({ path: "/public" });
      // this.$router.push({path: "/public"});
    },
    exp(val){
      this.$router.push({path: "/experts"})
    }
  }
};
</script>

<style scoped>
.van-tabs--line .van-tabs__wrap{
  height: 35px;
}
/* .van-tabs--line .van-tabs__wrap {
    height: 20px;
    border: none;
} */
.van-tabs--line .van-tabs__wrap {
  height: 200px;
  background: #000;
}
/* .van-tabs--line{
  background: #000;
} */
.van-tabs >>> .van-tabs__nav--line {
  padding-bottom: 20px;

}
.van-tabs {
  height: 200px;
}
header {
  display: flex;
  justify-content: space-around;
}
/* .img-dream{
  width: 1.9rem;
  height: 200px;
  border-radius: 4%;
  margin-top: 8px;
} */
.tab {
  /* background: #000; */
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 6px;
}
.tab > img {
  width: 350px;
  height: 375px;
  border-radius: 4%;
  margin-top: 8px;
}
.tab > .img-fitness {
  width: 700px;
}
.gdlan {
  width: 60px;
  margin: 14px 0 0 0;
  text-align: center;
}
i {
  font-style: initial;
  font-size: 12px;
}
footer {
  position: fixed;
  left: 0;
  bottom: 0;
  /*height: 2.59rem;*/
  width: 100%;
  background-color: #000;
  background-color: rgba(0, 0, 0, 0.84);
  /* border-top: 1px solid #e0e0e0; */
  z-index: 999;
}
footer > ul > li {
  float: left;
  width: 19%;
  text-align: center;
  font-size: 1rem;
  line-height: 39px;
}
li {
  list-style: none;
}
a {
  color: #fff;
  /* -webkit-backface-visibility: hidden; */
  text-decoration: none;
}
.router-link-exact-active {
  color: #fff;
  border-bottom: 1px solid #fff;
}
.main2 {
  margin: 4px 0 0 15px;
  width: 60px;
  text-align: center;
  height: 30px;
  line-height: 30px;
  position: relative;
  color: #000;
  background: #fff;
  border-radius: 15px;
  /* border-left: 2px solid rgba(23,255,232,.7); */
  /* border-right: 2px solid rgba(254,44,85,.7); */
}
.g_wrap2 {
  /* text-shadow: -2px 0 rgba(0,255,255,.5), 2px 0 rgba(255,0,0,.5); */
}
.dropdown-ment {
  top: auto;
  bottom: 100%;
  margin-bottom: 2px;
  position: absolute;
  left: 13px;
  z-index: 1000;
  float: left;
  padding: 5px 0;
  margin: 2px 0 0;
  font-size: 16px;
  text-align: left;
  list-style: none;
  background-color: #000;
  background-color: rgba(0, 0, 0, 0.8);
  background-clip: padding-box;
  border: 1px solid #ccc;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}
.li1 {
  margin-left: 20px;
}
.w {
  color: #fff;
  background: #000;
}
.wrapper >>> .van-nav-bar__title {
  color: #fff;
}
</style>
<style  scoped>
.w {
  color: #fff;
  background: #000;
}
.wrapper >>> .van-nav-bar__title {
  color: #fff;
}
</style>
